import request from '@/utils/request'

// 查询联动策略列表
export function listStrategy(query) {
  return request({
    url: '/linkage/strategy/list',
    method: 'get',
    params: query
  })
}

// 查询联动策略详细
export function getStrategy(linkageStrategyId) {
  return request({
    url: '/linkage/strategy/' + linkageStrategyId,
    method: 'get'
  })
}

// 新增联动策略
export function addStrategy(data) {
  return request({
    url: '/linkage/strategy',
    method: 'post',
    data: data
  })
}

// 修改联动策略
export function updateStrategy(data) {
  return request({
    url: '/linkage/strategy',
    method: 'put',
    data: data
  })
}

// 删除联动策略
export function delStrategy(linkageStrategyId) {
  return request({
    url: '/linkage/strategy/' + linkageStrategyId,
    method: 'delete'
  })
}
